package com.itheima.d18_extends_demo;

public class Dog extends Animal{
    public Dog(){}
    public Dog(String name,String color,int price){
        super(name, color, price);
    }
    @Override
    public void eat() {
        System.out.println(getColor() + "的" + getName()+ "在吃饭~~~");
    }

    @Override
    public void work() {
        System.out.println(getName() + "在看家~~~");
    }
}
